import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.scenes.scene2d.Stage;

public class WorldRender {
	World world;
	ShapeRenderer shapeRenderer;
	Stage stage;

	public WorldRender(World w) {
		stage = new Stage();
		this.world = w;
		stage.addActor(world);
		shapeRenderer = new ShapeRenderer();
	}

	public void render(float delta) {
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		stage.act();
		// shapeRenderer.begin(ShapeType.Rectangle);
		// Rectangle r = world.rockMan.bound;
		// shapeRenderer.setColor(new Color(0, 1, 0, 1));
		// float _x = world.rockMan.position.x;
		// float _y = world.rockMan.position.y;
		// shapeRenderer.rect(_x, _y, r.width, r.height);
		// shapeRenderer.end();
	}
}
